<?php
class Admin_Block extends Admin_Controller{
	function __construct(){
		parent::__construct();
		$this->load->model('block_m');
	}
	
	function index(){
		$model = $this->block_m->get_all();
		$this->template
			->set('model',$model)
			->append_js('data-tables/filter.js')
			->build($this->controller.'/'.$this->method);
	}
}